<html>
  <head>
    <script language="javascript" src="../eXo.js"></script>
    <script language="javascript" src="../eXo/core/Util.js"></script>
    <script language="javascript" src="../eXo/core/DOMUtil.js"></script>
    <script language="javascript" type="text/javascript">
      function test() {
	      var DOMUtil = eXo.core.DOMUtil ;
	      var root = document.getElementById('root');
	      
	      
      	var T1 = (new Date()).getTime();
				for (var i = 0; i < 3000; ++i)
					DOMUtil.findChildrenByClass(root, "div", "class4") ;
				alert(((new Date()).getTime() - T1) / 1000);
      }
	  </script>
  </head>

  <body>
    <div style="border: solid 1px red;" onclick="test();">click here</div>
    <div class="Root" id="root">
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class2 class3">The div</div>
      <div class="class1 class4 class3">The div</div>
    <div>
  </body>
<html>
